<table>
<?php echo $html->tableHeaders(array(__('milestone', true), __('projected_date', true))); ?>
<?php
$i = 0;
foreach ($default_milestones as $milestones) {
	$milestone = $milestones['Milestone'];
	$id = $milestone['id'];
	echo $html->tableCells(array($form->checkbox('Milestone.check_' . $i, array('label' => false)) . ' ' . $milestone['name'] . $form->hidden('Milestone.' . $i,array('value' => $milestone['id'])),
		$form->dateTime('Milestone.deadline_'.$i,'DMY',null,null,null),
		$ajax->link(__('delete', true), '/milestones/delete/' . $milestone['id'], array('update' => 'milestones'), 'are you sure you want to delete this milestone?')));
	$i++;
}
?>
</table>
<div id="milestone">
		<?php echo $ajax->link(__('create_new_milestone', true), '/milestones/addform',array('update'=>'milestone')); ?>
</div>